import java.util.*;

public class TextMyHandle {
    public static void main(String[] args) {
        //获取表中的所有数据
        List<User> list = MyhandleDbReflection.findList("select * from dept ", User.class);
        System.out.println("list = " + list);
        //查询表中的一组数据
        User user = MyhandleDbReflection.queryBean("select * from dept where DEPTNO=?", User.class, 10);
        System.out.println("user = " + user);
        //        List<User> bean = MyhandleDbReflection.Bean("select * from dept where DEPTNO=?", User.class, 10);
//        System.out.println(bean);
//        HashMap<String, Object> stringObjectHashMap = MyhandleDbReflection.queryMap("select * from dept where DEPTNO=?", 10);
//        System.out.println("stringObjectHashMap = " + stringObjectHashMap);
//        ArrayList<Map> maps = MyhandleDbReflection.queryMapList("select * from dept where DNAME=?", "ADUD");
//        System.out.println("maps = " + maps);
//        Object[] objects = MyhandleDbReflection.queryArray("select * from dept where DNAME=?", "ADUD");
//        System.out.println("Arrays.toString(objects) = " + Arrays.toString(objects));
//        ArrayList<Object> objects1 = MyhandleDbReflection.queryArrays("select * from dept where DEPTNO=?", 10);
    }
}
